import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'sqflite_helper_method_channel.dart';

abstract class SqfliteHelperPlatform extends PlatformInterface {
  /// Constructs a SqfliteHelperPlatform.
  SqfliteHelperPlatform() : super(token: _token);

  static final Object _token = Object();

  static SqfliteHelperPlatform _instance = MethodChannelSqfliteHelper();

  /// The default instance of [SqfliteHelperPlatform] to use.
  ///
  /// Defaults to [MethodChannelSqfliteHelper].
  static SqfliteHelperPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [SqfliteHelperPlatform] when
  /// they register themselves.
  static set instance(SqfliteHelperPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> getPlatformVersion() {
    throw UnimplementedError('platformVersion() has not been implemented.');
  }

  Future<bool> pathExist(String path) {
    throw UnimplementedError('pathExist() has not been implemented.');
  }

  Future<void> makeDir(String path) {
    throw UnimplementedError('makeDir() has not been implemented.');
  }

  Future<void> writeDataToFile({required String path, required List<int> bytes}) {
    throw UnimplementedError('makeDir() has not been implemented.');
  }
}
